window.onload = function() {
	var arrImg = [
		'./images/am1.jpg',
		'./images/am2.jpg',
		'./images/am3.jpg',
		'./images/am4.jpg',
		'./images/am5.jpg',
		'./images/am16.jpg',
		'./images/am17.jpg',
		'./images/am1.jpg',
		'./images/am19.jpg',
		'./images/am10.jpg'
	]
	
	
	var til = [
		'林俊杰',
		'欧美 | Taylor Swift',
		'来自天堂的魔鬼 | 邓紫棋',
		'岁月神偷｜周笔畅',
		'十一月的萧邦 | 周杰伦',
		'XXXXXX|XXXXX',
		'XXXXXX|XXXXX',
		'XXXXXX|XXXXX',
		'XXXXXX|XXXXX',
		'XXXXXX|XXXXX'
	]
	
	var moreL = document.getElementsByName("img10");//name="img10"
	var pre = document.getElementById("pre");
	var next = document.getElementById("next");
	var more_ = document.getElementById("more_");
	var index=0;
	var title2 =document.getElementsByName("Album");
	
	pre.onclick=function()
	{
		index=0
		for(var i=0;i<5;i++)
		{
			moreL[i].src=arrImg[index*5+i];
			title2[i].innerHTML=til[index*5+i];
		}
	}
	pre.onmouseover=function(){
		pre.src="./img/上一页.png";
	}
	
	pre.onmouseout=function(){
		pre.src="./img/上一页0.png";
	}
	next.onclick=function()
	{
		
		index=1;
		if(index>1)index--;
		for(var i=0;i<5;i++)
		{
			
			console.log(index*5+i);
			console.log(arrImg[index*5+i]);
			moreL[i].src=arrImg[index*5+i];
			title2[i].innerHTML=til[index*5+i];
		}
	}
	
	
	
	next.onmouseover=function(){
		next.src="./img/下一页.png";
	}
	
	next.onmouseout=function(){
		next.src="./img/下一页0.png";
	}
	
	
}